<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>My Virtual Library</title>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />

</head>

<body>

<div id="wrapper">
<h1><em>MyVirtual</em> Library</h1>

<jsp:include page="header.jsp" />
<div id="topcon">
<div id="topcon-inner">
<h2>Welcome to My Virtual Library</h2>
<p><jsp:include page="description.jsp" /></p>
</div>
</div>
</div>

<div id="content">
<div id="body">
<div class="right">
<p><strong>All Users/Admins In My Virtual Library</strong></p>
<br />
<s:actionerror />
	<table border="1" width="80%">
		<tr>
			<td>User Id</td>
			<td>User Type</td>
			<td>First Name</td>
			<td>Last Name</td>
			<td>Email Address</td>
			<td>Phone Number</td>
			<td>Edit Details</td>
		</tr>
		
		<s:iterator id="usersIterator" value="resultUsersAdmin">
			<tr>
				<td><s:property value="userId"/></td>
				<td><s:property value="userType"/></td>
				<td><s:property value="firstName" /></td>
				<td><s:property value="lastName" /></td>
				<td><s:property value="userName" /></td>
				<td><s:property value="phoneNumber"/></td>
				<td><a href="<s:url action="loadEditUserAdmin">
    				<s:param name="userId" value="%{userId}" /></s:url>">Edit User</a>
				 </td>
			</tr>
		</s:iterator>
	</table>
</div>

<div class="clear"></div>
</div>
<jsp:include page="footer.html" /></div>
</body>
</html>